export default {
  mdctrlActiveMode: 2,
  xdataControlName: 'tree',
  loadDefault: true,
  deviewCodeName: 'tree_cursession_datasource',
  deviewId: 'f91f4d8615c971dfaf1a49d0d80add3d',
  appWFId: 'workflow',
  accUserMode: 3,
  capLanguageRes: {
    lanResTag: 'DE.LNAME.MASTER',
  },
  caption: '树视图_当前视图会话数据源',
  codeName: 'master_tree_cursession_datasource',
  appDataEntityId: 'web.master',
  appViewEngines: [
    {
      engineCat: 'VIEW',
      engineType: 'TreeView',
      id: 'engine',
    },
  ],
  appViewLogics: [
    {
      eventNames: 'onCreated',
      logicTrigger: 'VIEWEVENT',
      logicType: 'SCRIPT',
      scriptCode:
        "const state = view.state;\r\nstate.master=[\r\n    { id: '1', name: '当前视图变量参数1' },\r\n    { id: '2', name: '当前视图变量参数2' },\r\n    { id: '3', name: '当前视图变量参数3' },\r\n]",
      builtinLogic: true,
      name: 'onCreated',
      id: 'oncreated',
    },
  ],
  appViewMsgGroupId: 'vmgroup59',
  controls: [
    {
      detreeNodeRSs: [
        {
          childDETreeNodeId: 'node',
          parentDETreeNodeId: 'root',
          parentValueLevel: 1,
          searchMode: 3,
          id: '默认根节点 - 当前视图会话数据源',
        },
        {
          childDETreeNodeId: 'master',
          parentDETreeNodeId: 'node',
          parentValueLevel: 1,
          searchMode: 3,
          id: '当前视图会话数据源 - 主数据',
        },
      ],
      detreeNodes: [
        {
          text: '默认根节点',
          nodeType: 'ROOT',
          treeNodeType: 'STATIC',
          hasDETreeNodeRSs: true,
          rootNode: true,
          name: '默认根节点',
          id: 'root',
        },
        {
          dataName: 'master',
          dataSourceType: 'VIEWSESSIONPARAM',
          idAppDEFieldId: 'id',
          textAppDEFieldId: 'name',
          nodeType: 'master',
          appDataEntityId: 'web.master',
          treeNodeType: 'DE',
          name: '主数据',
          id: 'master',
        },
        {
          text: '当前视图会话数据源',
          nodeType: 'node',
          treeNodeType: 'STATIC',
          hasDETreeNodeRSs: true,
          name: '当前视图会话数据源',
          id: 'node',
        },
      ],
      outputIconDefault: true,
      navViewPos: 'NONE',
      createControlAction: {
        appDEMethodId: 'create',
        appDataEntityId: 'web.master',
        id: 'create',
      },
      fetchControlAction: {
        appDataEntityId: 'web.master',
        id: 'fetch',
      },
      getControlAction: {
        appDEMethodId: 'get',
        appDataEntityId: 'web.master',
        id: 'load',
      },
      removeControlAction: {
        appDEMethodId: 'remove',
        appDataEntityId: 'web.master',
        id: 'remove',
      },
      updateControlAction: {
        appDEMethodId: 'update',
        appDataEntityId: 'web.master',
        id: 'update',
      },
      autoLoad: true,
      showBusyIndicator: true,
      codeName: 'tree_cursession_datasource',
      controlType: 'TREEVIEW',
      logicName: '树视图_当前视图会话数据源',
      appDataEntityId: 'web.master',
      controlParam: {
        id: 'tree',
      },
      modelId: 'b908811cbb12e7306c9f19340c797f53',
      modelType: 'PSDETREEVIEW',
      name: 'tree',
      id: 'web.master.tree_cursession_datasource',
    },
    {
      groupMode: 'SINGLE',
      controlType: 'SEARCHBAR',
      appDataEntityId: 'web.master',
      controlParam: {
        id: 'searchbar',
      },
      id: 'searchbar',
    },
    {
      capLanguageRes: {
        lanResTag: 'DE.LNAME.MASTER',
      },
      caption: '树视图_当前视图会话数据源',
      codeName: 'tree_cursession_datasource_captionbar',
      controlType: 'CAPTIONBAR',
      appDataEntityId: 'web.master',
      controlParam: {},
      name: 'captionbar',
      id: 'tree_cursession_datasource_captionbar',
    },
  ],
  viewLayoutPanel: {
    layoutBodyOnly: true,
    useDefaultLayout: true,
    layoutPanel: true,
    codeName: 'layoutpanel',
    controlStyle: 'APPDETREEVIEW',
    controlType: 'VIEWLAYOUTPANEL',
    appDataEntityId: 'web.master',
    controlParam: {},
    id: 'layoutpanel',
  },
  title: '树视图_当前视图会话数据源',
  viewStyle: 'DEFAULT',
  viewType: 'DETREEVIEW',
  enableDP: true,
  showCaptionBar: false,
  modelId: '1e52ea0c2106c7b8cb45535a87164a97',
  modelType: 'PSAPPDEVIEW',
  name: 'MASTERtree_cursession_datasource',
  id: 'web.master_tree_cursession_datasource',
};
